package com.ww.springboot.springstudy;

import com.ww.springboot.springstudy.config.MyDeferredImportSelector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author ZH500
 */
@Import(MyDeferredImportSelector.class)
@RestController
// 必须每个项目都排除一遍 不能在starter中使用来统一排除
//@SpringBootApplication(exclude = ConfigA.class, excludeName = "com.ww.starter2.config.ConfigA")
@SpringBootApplication
public class SpringbootStudyApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringbootStudyApplication.class);
        //springApplication.setWebApplicationType(WebApplicationType.NONE);
        springApplication.run(SpringbootStudyApplication.class, args);
        //会禁用命令行内的参数
        springApplication.setAddCommandLineProperties(false);
        springApplication.setAdditionalProfiles();
    }
}
